class A:
    pass
class B(A):
    pass
b=B()
print(isinstance(b,B))
print(isinstance(b,A))

print(type(b))
print(type(b) is B)
print(type(b) == B)

print(type(b) is A)
print(type(b) == A)


